home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10594 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: galaxy.ucr.edu!not-for-mail
  2. From: thp@cs.ucr.edu (Tom Payne)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Will JAVA kill C++?
  5. Date: 8 Mar 1996 19:42:30 GMT
  6. Organization: University of California, Riverside
  7. Message-ID: <4hq2j6$q93@galaxy.ucr.edu>
  8. References: <313E44EA.14D110C0@netcom.com> <4hp18v$3di@frodo.smartlink.net>
  9. NNTP-Posting-Host: corvette.ucr.edu
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. The Nameless One (hopkins@smartlink.net) wrote:
  13. :
  14. :    Even if you did compile the JAVA program into your machine's native 
  15. : language (in so doing you would lose ALL cross-platform compatibility), 
  16.  
  17. There is no intrinsic difference between JAVA and C++ regarding their
  18. compilability and their interpretability.  
  19.  
  20. : I still think the C++ program would be quicker and more efficient -- There
  21. : are still some things you will not be able to do in JAVA, such as
  22. : pointers.  And anyone who believes arrays can do anything a real pointer
  23. : can does not know what they are talking about and probably does not know
  24. : how to program very well.
  25.  
  26. When one is interested in speed, one should avoid pointers (as
  27. does. Fortran), since pointers kill opportunities for optimization.
  28.  
  29. :    Java main advantage, and a large advantage it is, will be complete
  30. : cross-platform compatibility.  Meaning any JAVA program will run on any
  31. : machine which has an interpreter programmed for it.  
  32.  
  33. Just like C++, no?  Either language can be compiled into an
  34. efficiently interpretable pseudo-code.  Perhaps, someone will retarget
  35. g++ to the JAVA pseudo-machine, just to prove the point.
  36.  
  37. Tom Payne (thp@cs.ucr.edu)
  38.